<!--
//*************************************************************************************************
// 讓 Row mouseover 時產生變色
//*************************************************************************************************
var strRowClassName = "";
var strPreColor = "";
function admin_en() {
	var strHighColor = "#ffff9f";	//MouseOver
	var strDarkColor = "#ffddff"; //MouseClick
	var objRow, i, j, objTDs;
	if (strRowClassName == "")return;
	var objTRs = document.getElementsByTagName("tr");

	i = 0;
	while (objRow = objTRs.item(i++)) {
		//alert(objRow.className);
		if (strRowClassName.indexOf(objRow.className) >= 0 && objRow.className.length > 0) {
			objRow.onmouseover = function() { 
				for (j = 0; j < this.cells.length; j++){
					if(this.cells[j].tagName.toLowerCase() != "td")continue;
					if(this.cells[j].style.backgroundColor.toLowerCase() != strDarkColor){
						this.cells[j].title = this.cells[j].style.backgroundColor;
						this.cells[j].style.backgroundColor = strHighColor;
					}
				}
			}
			objRow.onmouseout = function() { 
				for (j = 0; j < this.cells.length; j++){
					if(this.cells[j].tagName.toLowerCase() != "td")continue;
					if(this.cells[j].style.backgroundColor.toLowerCase() != strDarkColor){
						this.cells[j].style.backgroundColor = this.cells[j].title;
						this.cells[j].title = "";
					}
				}
			}
			objRow.onclick = function() { 
				for (j = 0; j < this.cells.length; j++){
					if(this.cells[j].tagName.toLowerCase() != "td")continue;
					if(this.cells[j].style.backgroundColor.toLowerCase() == strHighColor){
						this.cells[j].style.backgroundColor = strDarkColor;
					}else if(this.cells[j].style.backgroundColor.toLowerCase() == strDarkColor){
						this.cells[j].style.backgroundColor = strHighColor;
					}
				}
			}
		}
	}
}
onload =  function(){
	admin_en();
}

//*************************************************************************************************
// 讓 "a" tag 當mouseover 時，window status 顯示該連結文字
//*************************************************************************************************
document.onmousemove = function(){
	var myAnchor = window.event.srcElement;
	var strInnerText;
	if (myAnchor.tagName){
		if (myAnchor.tagName.toLowerCase() == "a"){
			myAnchor.onfocus = function() {
				strInnerText = this.innerText;
				window.status = strInnerText; 
				return (true);
			}
			myAnchor.onmouseover = function() {
				strInnerText = this.innerText;
				window.status = strInnerText; 
				return (true);
			}
			myAnchor.onmouseout = function() {
				window.status = ""; 
				return (true);
			}
		}
	}
}
//-->